package com.qujia.customer.enums;

public enum CardSumPayTypeEnum {

    POS("pos","会员卡-移动支付充值"),
    IMP("imp","会员卡-充值手动增加"),
    WX("wx","会员卡-微信充值"),
    CJHYSD("cjhysd","超级会员-手动添加"),
    CJHYXS("cjhyxs","超级会员-线上添加"),
    CDK("cdk","车队卡-后台充值"),
    DKQXJ("dkqxj","实体卡-后台充值"),
    DKQWXPOS("dkqwxpos","实体卡-移动支付充值");


    private String code;

    private String msg;

    CardSumPayTypeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public static String getCardSumPayTypeName(String value){
        for(CardSumPayTypeEnum cardSumPayTypeEnum : CardSumPayTypeEnum.values()){
            if(cardSumPayTypeEnum.getCode().equals(value)){
                return cardSumPayTypeEnum.getMsg();
            }
        }
        return value;
    }
}
